import request from '../request'
import { ResponseProps } from './reponse'

export function login(username: string, password: string) {
  
  return request.post<ResponseProps>('/login', {
    username,
    password,
  })
}

export function info() {
  return request.get<ResponseProps>('/admin/user')
}